<?php

namespace app\index\controller;

use app\common\controller\HomeBase;
use think\Db;

class Index extends HomeBase
{
    public function index()
    {
        $config = [
            'admin' => 'http://tp5.com/admin',
            'doctor' => 'http://tp5.com/doctor',
            'dietitian' => 'http://tp5.com/dietitian',
            'therapists' => 'http://tp5.com/therapists',
            'reception' => 'http://tp5.com/reception',
            'cashier' => 'http://tp5.com/cashier',
            'am' => 'http://tp5.com/am',
            'ba' => 'http://tp5.com/ba',
            'warehouse' => 'http://warehouse.com'
        ];

//        $data = [
//            'moduleName' => request()->module(),
//            'controllerName' => request()->controller(),
//            'actionName' => request()->action(),
////            'modelName' => $this->name,
//        ];
//
//
//        echo json_encode( $data );


        return $this->fetch('index', ['config' => $config]);
    }
}
